/**
 * 
 */
package peer.SearchManager;

import peer.gui.PeerGUI;

/**
 * @author 5708699
 *
 */
public class SearchUpdater implements ViewUpdater
{
	private PeerGUI _Handler;

	public SearchUpdater(PeerGUI handler)
	{
		_Handler = handler;
	}

	/* (non-Javadoc)
	 * @see peer.SearchManager.ViewUpdater#update(java.lang.String, java.lang.String, long, java.lang.String)
	 */
	public synchronized void update(String query, String filename, long size, String hashcode)
	{
		_Handler.addSearchResult(query, filename, size, hashcode);

	}

}
